+2006-03-28 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtktextview.c (gtk_text_view_do_popup)
+ (gtk_text_view_grab_notify): Move the call to
+ gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
+ to gtk_text_view_grab_notify, so that it works not only
+ for the text views own popup, but also for other ways in which
+ we might become grab-shadowed during a selection drag.
+ (#74620, Li Yuan)
+
2006-03-28 Sven Herzberg <herzi@gnome-de.org>
reviewed by: Tim Janik
+2006-03-28 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtktextview.c (gtk_text_view_do_popup)
+ (gtk_text_view_grab_notify): Move the call to
+ gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
+ to gtk_text_view_grab_notify, so that it works not only
+ for the text views own popup, but also for other ways in which
+ we might become grab-shadowed during a selection drag.
+ (#74620, Li Yuan)
+
2006-03-28 Sven Herzberg <herzi@gnome-de.org>
reviewed by: Tim Janik
gboolean was_grabbed)
{
if (!was_grabbed)
- gtk_text_view_unobscure_mouse_cursor (GTK_TEXT_VIEW (widget));
+ {
+ gtk_text_view_end_selection_drag (GTK_TEXT_VIEW (widget), NULL);
+ gtk_text_view_unobscure_mouse_cursor (GTK_TEXT_VIEW (widget));
+ }
}
{
PopupInfo *info = g_new (PopupInfo, 1);
- /* should not need this, see http://bugzilla.gnome.org/show_bug.cgi?id=74620 */
- gtk_text_view_end_selection_drag (text_view, event);
-
/* In order to know what entries we should make sensitive, we
* ask for the current targets of the clipboard, and when
* we get them, then we actually pop up the menu.